package com.moxi.mogublog.sms;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 微服务：消息服务启动类
 * <p/>
 * EnableEurekaClient —— 本服务启动后会自动注册进eureka服务中
 * EnableRabbit —— 开启基于注解的RabbitMQ模式
 * EnableScheduling —— 开启定时任务
 *
 * @author LiShuai
 * @date 2020/5/27 10:08
 */
@EnableScheduling
@EnableRabbit
@EnableFeignClients(value = "com.moxi.mogublog.sms.feign")
@EnableEurekaClient
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class App04Sms {

    public static void main(String[] args) {
        SpringApplication.run(App04Sms.class, args);
    }

}
